package day0407

import "math"

func hammingWeight(num uint32) (cnt int) {
	for ; num > 0; num &= num - 1 {
		cnt++
	}
	return
}

func printNumbers(n int) (res []int) {
	max := int(math.Pow(float64(10), float64(n))) - 1
	for i := 1; i <= max; i++ {
		res = append(res, i)
	}
	return
}
